﻿@model Everynet.Models.PlanDetailModel
@{
    ViewBag.Title = "NBN";
}
@using Meek.HtmlHelpers
<section class="section-Container">
    <div class="pageTitle"> <img width="150" height="75" alt="about" src="@Url.Content("~/Content/images/pageTitleProducts.jpg")"> 
    </div>
   <div class="body-page bodyNBN"> 
   
  @{Html.RenderRoute("Partial/NBN");}
    <br />
    <div class="Summary">
        <table>
            <tbody><tr><th bgcolor="#D7E9FF" width="20">
            </th>
                <th bgcolor="#D7E9FF">
                    Allowance
                </th>
                <th bgcolor="#D7E9FF">
                    Price
                </th>
                <th bgcolor="#D7E9FF">
                </th>
            </tr></tbody><tbody>
             @* for loop start from here..*@
                    @foreach (var item in Model.PlanList)
                 {
                  
                    <tr>
                        <td colspan="5" style="padding-top: 15px; padding-bottom: 3px;">
                            <strong>@item.Name.Replace("NBN Fibre:","")</strong>
                        </td>
                    </tr>
                                 foreach (var itemInner in Model.PlanDetailList)
                              {
                                          if (item.ID == itemInner.PlanNamesID)
                                          {
                                        <tr>
                                        <td bgcolor="#D7E9FF">
                                        </td>
                                        <td>
                                         @itemInner.PlanDetailQuota
                                        </td>
                                        <td>
                                        $@itemInner.Price
                                        </td>
                                        <td id="@itemInner.PlanNamesID" lang="@item.Name.Replace("NBN Fibre:","")">
                                            <strong><a rel="@itemInner.PlanNamesDetailID" class="clickRecord" href="@Url.Action("NBN", "services", new { id = @itemInner.PlanNamesDetailID }) ">More info..</a></strong>
                                        </td>
                                    </tr>    
                                           }               
                                }
             
                 } 
                  @*For loop end here..*@   
             </tbody>
        </table>
    </div>
  @{Html.RenderRoute("Partial/NBNBottom");}

  <br />
      </div>
  </section>
   @section JavaScript
  {
  <script src="@Url.Content("~/Scripts/client/footerck.js")" type="text/javascript"></script>
  <script type="text/javascript">

      $('.clickRecord').live('click', function () {
          var text = $(this).parent().parent().attr('lang');
          var plandetail1 = $(this).parent().parent().attr('id');
          $.cookie("MainCookie", null, { path: '/', expires: -5 });
          var obj = plandetail1 + '|' + plandetail1 + '|' + text;
          $.cookie("MainCookie", obj, { path: '/', expires: 1 });
      });
      </script>
  }
  
